package com.webside.advertisement.mapper;
 

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.webside.advertisement.model.AdvertisementEntity;
import com.webside.base.basemapper.BaseMapper;
import com.webside.util.PageUtil;
 
 

public interface AdvertisementMapper extends BaseMapper<AdvertisementEntity, Long> {
   
	//<!-- editUI查询 -->
  	public AdvertisementEntity findById(Long id);
    //<!-- 修改 -->
  	public int update(AdvertisementEntity advertisementEntity);
    //<!-- 刪除 -->
    public int deleteBatchById(List<Long> id);
    //<!-- 添加 -->
    public int insert(AdvertisementEntity advertisementEntity);
    //<!-- list查询 -->
  	public List<AdvertisementEntity> queryListByPage(Map<String, Object> parameter);
  //<!-- 修改状态 -->
  	public int updatestatus(AdvertisementEntity advertisementEntity);
  	//查询总数
  	public int querycount(@Param("sort")String sort);
  	//分页及关键字查询
  	public List<HashMap<String,Object>> queryAd(@Param("page")PageUtil page, @Param("sort")String sort,@Param("code")String code);
}